package com.dt76.smallloanbackenduser.remote.ysy;

import com.dt76.smallloanbackenduser.hystrix.ysy.AccountHystrix;
import com.dt76.smallloanbackenduser.pojo.ysy.YBankAccount;
import com.dt76.smallloanbackenduser.utils.Result;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
@Component
@FeignClient(name = "smallloan-backend-service",fallback = AccountHystrix.class)
public interface AccountRemote {

    @RequestMapping("/ysy/account")
    public List<YBankAccount> qryAccountAll();

    @RequestMapping("/ysy/delacc")
    public Result delacc(@RequestParam("yId") int yId);
}
